package com.guoheng.hazard.sys.model.dto;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 类功能描述:　UpdateDTO
 *
 * @author Eternal
 * @date 2019-19-11 16:19
 */
public class UpdateDTO {

    @NotNull
    private String updateBy;

    private Date updateTime;

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime = new Date();
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = new Date();
    }

    @Override
    public String toString() {
        return "UpdateDTO{" +
                "updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }
}